package com.Lyoto.util.weixin.bean.template;

import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;

import java.io.Serializable;

/**
 * @author Lyoto
 * @Description 模板消息模板
 * @Date 2022-09-20 13:57
 * @Version
 **/
@Data
public class TplMessageTemplate<T> implements Serializable {
    private static final long serialVersionUID = 1L;
    @JSONField(name = "touser")
    private String toUser;
    @JSONField(name = "template_id")
    private String templateId;
    @JSONField(name = "url")
    private String url;
    private MiniProgram miniProgram;
    private String clientMsgId;
    private T data;
    
    static class MiniProgram {
        String appId;
        String pagePath;
    }
    
}
